<template>
  <div class="p-[15px] flex items-center bg-[#FCFCFC] justify-between">
    <div class="flex items-center">
      <div class="w-[2px] h-[10px] bg-[#EF6800] mr-[10px]"></div>
      <div class="text-[14px] font-bold">{{ title }}</div>
    </div>
    <div @click="copyProfile" v-if="title == '附加被保人'"
      class="px-[5px] h-[26px] flex items-center justify-center border border-[#EF6800] rounded-[3px] text-[#EF6800]">
      同投保人</div>
  </div>
</template>
<script setup lang="ts">
import { defineProps, defineEmits } from "vue";

defineProps({
  title: { type: String },

});
const emit = defineEmits(['copyProfile'])
const copyProfile = () => {
  emit("copyProfile");
}
</script>
